|
XBL (''XML Binding Language'') is an XML-based markup language used to declare the behavior and look of XUL-widgets and XML elements. Development of the XBL specification was abandoned by the W3C in 2012. XBL was developed by the Mozilla project for use in the Mozilla Application Suite; the language is not currently described by any formal standard and is thus proprietary to Mozilla, with the only implementation being the Gecko layout engine. XBL 2.0 is the latest version of XBL. == XBL basics == In XUL one defines the user interface layout of an application, and then by applying "styles" one can customize the look of various elements. The drawback is that XUL provides no means to change an element's function. For example, one might want to change how the pieces of a scroll bar work. This is where XBL comes in. An XBL file contains "bindings", each of which describes the behavior of a XUL-widget or XML element. For example, a binding might be attached to a scroll bar. The behavior describes the properties and methods of the scroll bar and also describes the XUL elements defining the scroll bar. The root element of an XBL file is the element, which contains one or more elements. Each element declares one binding, which can be attached to any XUL element. It may also possess an attribute. A binding is assigned to an element by setting the CSS property to the URL of the binding's file. For example: wherein binding1 is the id of the binding.抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「XBL」の詳細全文を読む スポンサード リンク
|